﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace FCTC_Web.Models
{
    //public enum ShopType
    //{
    //    二手车店, 
    //    4S车店, 
    //    汽车美容店,
    //    修理厂,
    //    协会组织,
    //    其他
    //}
    public class Shop : EntityBase
    {
        //商家主页
        [Display(Name="主页链接")]
        [MaxLength(100)]
        public string MainPageUrl { get; set; }

        [Display(Name = "车行信誉度"), Required(ErrorMessage = "请选择车行信誉度")]
        //[Range(1,30,ErrorMessage = "等级范围在1到30之间."),Required(ErrorMessage="请填入车行信誉度")]
        public string TrustLevel { get; set; }

        //所卖车 
        public virtual List<Vehicle> Vehicles { get; set; }

        //评估师
        public virtual List<Estimator> Estimators { get; set; }

        public virtual List<ImageModel> Imgs { get; set; }

        [Display(Name = "商家名称"),Required(ErrorMessage="请填写商家名称")]
        public string FullName { get; set; }

        //地址
        [Display(Name = "地址"),Required(ErrorMessage="请填写类型地址")]
        [MaxLength(100)]
        public string Address { get; set; }

        //商家类型
        [Display(Name = "商家类型"),Required(ErrorMessage="请选择商家类型")]
        public string ShopType{get; set; }

        //商家类型
        [Display(Name = "月累计销量")]
        public int? VehicleSaled { get; set; }

        [Display(Name = "联系电话"), Required(ErrorMessage = "请填写商家的电话")]
        public string ContactNumber{  get;  set;}
    }
}